package CS4310.csueb.visual;

import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.JTextArea;

public class ObjectiveItem extends JPanel
{	
	private JCheckBox complete;
	private JTextArea summary;
	
	public ObjectiveItem(String s, boolean done)
	{
		summary = new JTextArea();
		summary.setPreferredSize(new Dimension(325, 50));
		summary.setLineWrap(true);
		summary.setWrapStyleWord(true);
		summary.setFont(new Font("Arial", Font.BOLD, 14));
		summary.setEditable(false);
		summary.setText(s);
		
		complete = new JCheckBox("", done);
		complete.setEnabled(false);
		this.add(complete);
		this.add(summary);
	}
}
